package obsolete;

import java.io.Serializable;
import java.util.*;



/**
 * 
 * filters are properties of participants, which would like to define, which messages
 * to accept and which not
 * 
 * the routing of the send-command (factory -> XRegistration -> DataConnector) allows to attach
 * an adhoc filter setting, which will be transferred within the xml  
 *    send(TaskPackage taskPackage, FilterPackageIntf filter)
 *
 */
public class FilterPackage implements FilterPackageIntf, Serializable{

	transient private static final long serialVersionUID = -1019224607017855848L;


	String name = "";
	
	long clientID = 0;
	
	String label = "";
	int intnum = -1;
	double value = -1.0 ;
	
	Vector<String> labels = new Vector<String>();
	Vector<Double> values = new Vector<Double>();
	Vector<Integer> intnums = new Vector<Integer>();

	SortedMap<String,String> mapping = new TreeMap<String,String>() ;
	
	Object obj ;
	
	
	public FilterPackage(){
		
	}
	
	// ------------------------------------------------------------------------
	
	public FilterPackage( FilterPackageIntf importedSettings ){
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public int getIntnum() {
		return intnum;
	}

	public void setIntnum(int intnum) {
		this.intnum = intnum;
	}

	public double getValue() {
		return value;
	}

	public void setValue(double value) {
		this.value = value;
	}

	public Vector<String> getLabels() {
		return labels;
	}

	public void setLabels(Vector<String> labels) {
		this.labels = labels;
	}

	public Vector<Double> getValues() {
		return values;
	}

	public void setValues(Vector<Double> values) {
		this.values = values;
	}

	public Vector<Integer> getIntnums() {
		return intnums;
	}

	public void setIntnums(Vector<Integer> intnums) {
		this.intnums = intnums;
	}

	public long getClientID() {
		return clientID;
	}

	public void setClientID(long clientID) {
		this.clientID = clientID;
	}

	public SortedMap<String, String> getMapping() {
		return mapping;
	}

	public void setMapping(SortedMap<String, String> mapping) {
		this.mapping = mapping;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	
	
}
